|
CHANGE DISPLAY MODE
This command will set the screen display mode if it is available on the current graphics card.
CHANGE DISPLAY MODE Width, Height, Depth, Fullscreen
Width
Integer
The width of the screen resolution to set
Height
Integer
The height of the screen resolution to set
Depth
Integer
The depth of the screen resolution of set - beware that only 16- and 32-bit depths are allowed
Fullscreen
Boolean
Set this value to one (true) to indicate that the display mode to change to will be fullscreen exclusive, or specify a
value of zero (false) to indicate that it will instead be windowed.
If you want to achieve a windowed fullscreen mode you should call SET WINDOW OFF and then
use this command with the fullscreen state disabled and setting the width and height to the size of the desktop.
This command does not return a value.
Unlike the SET DISPLAY MODE command, this command allows you to change the display mode of your application at runtime without having to reload all your media.
Beware that this will only work on Windows Vista and later as those use the WDDM that facilitates keeping loaded resources in VRAM while changing display mode. On earlier Windows versions this command will likely work the same as SET DISPLAY MODE (untested).
DISPLAY Commands Menu
Index
|